<template>
  <h1>产品 - 跟随框组件</h1>
  {{ "materialType：" + materialType }}
  <f-dictionary v-model:value="materialType" code="MaterialType" type="radio" />
  <f-follow-products
    ref="tableFollowRef"
    :materialType="materialType"
    :aas="110"
    class="w300"
    placeholder="请输入搜索内容B"
    @change="handleChange"
  />
  <pre>{{ result }}</pre>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const materialType = ref('01');
const tableFollowRef = ref();
const result = ref();

const handleChange = (e) => {
  console.log('handleChange', e);
  result.value = e;
};

const handleInput = () => {
  tableFollowRef.value.search();
}

</script>
<style>
</style>